{% extends 'base.html.twig' %}

{% block body %}
    <h1>Taskjob</h1>

    <table>
        <tbody>
            <tr>
                <th>Name</th>
                <td>{{ taskJob.name }}</td>
            </tr>
            <tr>
                <th>Note</th>
                <td>{{ taskJob.note }}</td>
            </tr>
            <tr>
                <th>Isenabled</th>
                <td>{% if taskJob.isEnabled %}Yes{% else %}No{% endif %}</td>
            </tr>
            <tr>
                <th>Creator</th>
                <td>{{ taskJob.creator }}</td>
            </tr>
            <tr>
                <th>Ip</th>
                <td>{{ taskJob.ip }}</td>
            </tr>
            <tr>
                <th>Ctime</th>
                <td>{% if taskJob.ctime %}{{ taskJob.ctime|date('Y-m-d H:i:s') }}{% endif %}</td>
            </tr>
            <tr>
                <th>Startstepid</th>
                <td>{{ taskJob.startStepId }}</td>
            </tr>
            <tr>
                <th>Activestartdate</th>
                <td>{% if taskJob.activeStartDate %}{{ taskJob.activeStartDate|date('Y-m-d') }}{% endif %}</td>
            </tr>
            <tr>
                <th>Activestarttime</th>
                <td>{% if taskJob.activeStartTime %}{{ taskJob.activeStartTime|date('H:i:s') }}{% endif %}</td>
            </tr>
            <tr>
                <th>Activeenddate</th>
                <td>{% if taskJob.activeEndDate %}{{ taskJob.activeEndDate|date('Y-m-d') }}{% endif %}</td>
            </tr>
            <tr>
                <th>Activeendtime</th>
                <td>{% if taskJob.activeEndTime %}{{ taskJob.activeEndTime|date('H:i:s') }}{% endif %}</td>
            </tr>
            <tr>
                <th>Freqtype</th>
                <td>{{ taskJob.freqType }}</td>
            </tr>
            <tr>
                <th>Freqexpression</th>
                <td>{{ taskJob.freqExpression }}</td>
            </tr>
            <tr>
                <th>Packageid</th>
                <td>{{ taskJob.packageId }}</td>
            </tr>
            <tr>
                <th>Groupid</th>
                <td>{{ taskJob.groupId }}</td>
            </tr>
            <tr>
                <th>Id</th>
                <td>{{ taskJob.id }}</td>
            </tr>
        </tbody>
    </table>

    <ul>
        <li>
            <a href="{{ path('taskjobs_index') }}">Back to the list</a>
        </li>
        <li>
            <a href="{{ path('taskjobs_edit', { 'id': taskJob.id }) }}">Edit</a>
        </li>
        <li>
            {{ form_start(delete_form) }}
                <input type="submit" value="Delete">
            {{ form_end(delete_form) }}
        </li>
    </ul>
{% endblock %}
